<template>
    <div id="weekreport" style="width: 5.5rem;height: 3rem">
        <input class="login-input" type="text"  v-model="email" placeholder="请输入邮箱，多个邮箱请用,(英文)隔开" style="width: 4rem; margin-left:0.75rem;margin-top:1rem">
        <div class="login-button" @click="login" type="submit" style="margin-left:0.75rem;margin-top:0.1rem;">{{name}}</div>
        <!-- <el-form-item style="margin-left:0.75rem;margin-top:0.2rem"> -->
            <!-- <el-button @click="login" type="submit" style="margin-left:0.75rem;margin-top:0.1rem">点击生成周报</el-button> -->
      <!-- </el-form-item> -->
    </div>
</template>
<script>
import global from '../../../utils/global.js'
export default {
    name: 'Login',
    data() {
        return {
            email: '',
            name:'点击生成周报'
        }
    },
    methods: {
        login() {
            this.name = '周报生成中请稍后...'
            location = global.host+"show/weekreport/?project="+this.$route.query.project+"&email="+this.email
        }
    }
}
</script>
<style lang="scss">

</style>